home *** CD-ROM | disk | FTP | other *** search
/ Alles Voor Internet / Tout Pour Internet / alles voor internet.iso / MacInternet™ / Net / Utilities / Seer family 2.0 / pdl.lsp < prev    next >
Encoding:
Lisp/Scheme  |  1987-11-18  |  8.1 KB  |  377 lines  |  [TEXT/????]

  1. (pdl_struct pdl_hdr
  2.  (pdl_field paknm 32 dec)
  3.  (pdl_field dat 32 noprint)
  4.  (pdl_field time 32 dec)
  5.  (pdl_field err 16 hex)
  6.   (pdl_name noerr 0x0 nil nil)
  7.   (pdl_name overr 0x1 nil nil)
  8.   (pdl_name noabort 0x2 nil nil)
  9.   (pdl_name crc 0x3 nil nil)
  10.  (pdl_field siz 16 dec)
  11.  (pdl_field hwcrc 16 hex)
  12. )
  13.  
  14. (pdl_struct pdl_root
  15.  (pdl_field lapdst 8 hex)
  16.  (pdl_field lapsrc 8 hex)
  17.  (setq reg4 0)
  18.  (pdl_field lapty 8 hex :counter cnt1)
  19.   (pdl_name lapENQ 0x81 nil nil :reject)
  20.   (pdl_name lapACK 0x82 nil nil :reject)
  21.   (pdl_name lapRTS 0x84 nil nil :reject)
  22.   (pdl_name lapCTS 0x85 nil nil :reject)
  23.   (pdl_name sddp 0x1 sddp reg4 :on_scope)
  24.   (pdl_name lddp 0x2 lddp reg4 :on_scope)
  25.   (pdl_name mazewp 0x30 mazewp reg4)
  26.  (funcal reg4)
  27. )
  28.  
  29. (pdl_struct sddp
  30.  (pdl_field 0 6 hex)
  31.  (pdl_field ddplen 10 dec)
  32.  (pdl_field dsok 8 dec)
  33.  (funcal ???)
  34.  (pdl_field ssok 8 dec)
  35.  (funcal ???)
  36.  (pdl_field ddpty 8 noprint :value_to reg3)
  37.  (funcal ???)
  38. )
  39.  
  40.   (pdl_name RTMPsok 1 nil nil)
  41.   (pdl_name NISsok 2 nil nil)
  42.   (pdl_name ECHOsok 4 nil nil)
  43.   (pdl_name ZIPsok 6 nil nil)
  44. )
  45.  
  46.  (setq reg4 0)
  47.  (pdl_field ddpty 8 dec :counter cnt2 :value_from reg3)
  48.   (pdl_name RTMPresp 1 RTMPresp reg4)
  49.   (pdl_name NBP 2 NBP reg4 :on_scope)
  50.   (pdl_name ATP 3 ATP reg4 :on_scope :reject)
  51.   (pdl_name EP 4 EP reg4)
  52.   (pdl_name RTMPreq 5 RTMPreq reg4 :on_scope)
  53.   (pdl_name ZIP 6 ZIP reg4)
  54.   (pdl_name ip 22 ip reg4 :on_scope)
  55.   (pdl_name arp 23 arp reg4 :on_scope)
  56.  (funcal reg4)
  57. )
  58.  
  59. (pdl_struct RTMPresp
  60.  (pdl_field sndnet 16 dec)
  61.  (pdl_field idlen 8 dec :value_to reg1)
  62.  (funcal spcl0)
  63.  (pdl_field 0 2 dec :size_from reg2)
  64.  (pdl_field sndid 1 dec :size_from reg1)
  65.  (loope 'RTMPresp_item)
  66.  (thats_all)
  67. )
  68.  
  69. (pdl_struct RTMPresp_item
  70.  (pdl_field netn 16 dec)
  71.  (pdl_field dist 8 dec)
  72. )
  73.  
  74. (pdl_struct NBP
  75.  (pdl_field NBPty 4 dec)
  76.   (pdl_name BrRq 1 nil nil)
  77.   (pdl_name LkUp 2 nil nil)
  78.   (pdl_name Reply 3 nil nil)
  79.  (pdl_field count 4 dec :value_to reg1)
  80.  (pdl_field id 8 dec)
  81.  (loopc reg1 'nbp_item)
  82.  (thats_all)
  83. )
  84.  
  85. (pdl_struct nbp_item
  86.  (pdl_field enet 16 dec)
  87.  (pdl_field enod 8 dec)
  88.  (pdl_field esok 8 dec)
  89.  (funcal ???)
  90.  (pdl_field enumb 8 dec)
  91.  (pdl_field Obj 0 cnt_str)
  92.  (pdl_field Typ 0 cnt_str)
  93.  (pdl_field Zon 0 cnt_str)
  94. )
  95.  
  96. (pdl_struct ATP
  97.  (pdl_field func 2 dec)
  98.   (pdl_name TReq 1 nil nil)
  99.   (pdl_name TResp 2 nil nil)
  100.   (pdl_name TRel 3 nil nil)
  101.  (pdl_field XO 1 dec)
  102.  (pdl_field EOM 1 dec)
  103.  (pdl_field STS 1 dec)
  104.  (pdl_field 0 3 dec)
  105.  (pdl_field bm_seq 8 hex)
  106.  (pdl_field tid 16 hex)
  107.  (pdl_field usr 32 hex)
  108. )
  109.  
  110. (pdl_struct EP
  111.  (pdl_field epty 8 dec)
  112.   (pdl_name req 1 nil nil)
  113.   (pdl_name epreply 2 nil nil)
  114. )
  115.  
  116. (pdl_struct RTMPreq
  117.  (pdl_field cmd 8 hex)
  118.   (pdl_name request 0x1 nil nil)
  119.  (thats_all)
  120. )
  121.  
  122. (pdl_struct ZIP
  123.  (setq reg4 0)
  124.  (pdl_field zipty 8 dec)
  125.   (pdl_name query 1 @Å reg4)
  126.   (pdl_name zreply 2 @Å reg4)
  127.   (pdl_name godown 3 @Å reg4)
  128.   (pdl_name goup 4 @Å reg4)
  129.  (pdl_field count 8 dec :value_to reg5)
  130.  (funcal reg4)
  131. )
  132.  
  133.  (loopc reg5 'zipqry_item)
  134.  (thats_all)
  135. )
  136.  
  137. (pdl_struct zipqry_item
  138.  (pdl_field net 16 dec)
  139. )
  140.  
  141.  (loopc reg5 'zipreply_item)
  142.  (thats_all)
  143. )
  144.  
  145. (pdl_struct zipreply_item
  146.  (pdl_field net 16 dec)
  147.  (pdl_field nam 0 cnt_str)
  148. )
  149.  
  150.  (thats_all)
  151. )
  152.  
  153.  (pdl_field 0 16 dec)
  154.  (pdl_field nam 0 cnt_str)
  155.  (thats_all)
  156. )
  157.  
  158. (pdl_struct ip
  159.  (pdl_field vers 4 dec)
  160.   (pdl_name IPv4 4 nil nil)
  161.  (pdl_field ihl 4 dec)
  162.  (pdl_field precd 3 dec)
  163.   (pdl_name net_ctl 7 nil nil)
  164.   (pdl_name i_net_ctl 6 nil nil)
  165.   (pdl_name critic 5 nil nil)
  166.   (pdl_name flash_over 4 nil nil)
  167.   (pdl_name flash 3 nil nil)
  168.   (pdl_name immediate 2 nil nil)
  169.   (pdl_name priority 1 nil nil)
  170.   (pdl_name routine 0 nil nil)
  171.  (pdl_field delay 1 dec)
  172.   (pdl_name dnormal 0 nil nil)
  173.   (pdl_name dlow 1 nil nil)
  174.  (pdl_field through 1 dec)
  175.   (pdl_name tnormal 0 nil nil)
  176.   (pdl_name thigh 1 nil nil)
  177.  (pdl_field reli 1 dec)
  178.   (pdl_name rnormal 0 nil nil)
  179.   (pdl_name rhigh 1 nil nil)
  180.  (pdl_field 0 2 dec)
  181.  (pdl_field len 16 dec)
  182.  (pdl_field id 16 dec)
  183.  (pdl_field 0 1 dec)
  184.  (pdl_field DF 1 dec)
  185.   (pdl_name may 0 nil nil)
  186.   (pdl_name dont 1 nil nil)
  187.  (pdl_field MF 1 dec)
  188.   (pdl_name last 0 nil nil)
  189.   (pdl_name fmore 1 nil nil)
  190.  (pdl_field frago 13 dec)
  191.  (pdl_field live 8 dec :value_to reg6)
  192.  (setq reg6 0)
  193.  (pdl_field ipty 8 dec :counter cnt3)
  194.   (pdl_name tcp 6 tcp reg6)
  195.   (pdl_name ICMP 1 icmp reg6)
  196.   (pdl_name UDP 17 udp reg6)
  197.  (pdl_field hcks 16 dec)
  198.  (pdl_field sadr 32 ip_addr)
  199.  (pdl_field dadr 32 ip_addr)
  200.  (funcal reg6)
  201. )
  202.  
  203. (pdl_struct tcp
  204.  (pdl_field src_port 16 dec)
  205.  (pdl_field dst_prot 16 dec)
  206.  (pdl_field seq 32 dec)
  207.  (pdl_field ackn 32 dec)
  208.  (pdl_field doffs 4 dec)
  209.  (pdl_field 0 6 dec)
  210.  (pdl_field URG 1 dec)
  211.  (pdl_field ACK 1 dec)
  212.  (pdl_field PSH 1 dec)
  213.  (pdl_field RST 1 dec)
  214.  (pdl_field SYN 1 dec)
  215.  (pdl_field FIN 1 dec)
  216.  (pdl_field win 16 dec)
  217.  (pdl_field cks 16 hex)
  218.  (pdl_field urgp 16 hex)
  219. )
  220.  
  221. (pdl_struct icmp
  222.  (setq reg4 0)
  223.  (pdl_field icmpty 8 dec :value_to reg4)
  224.   (pdl_name echo_rply 0 icmp_echo reg4)
  225.   (pdl_name dst_unreach 3 dst_unreach reg4)
  226.   (pdl_name src_quence 4 src_quench reg4)
  227.   (pdl_name redirect 5 icmp_redirect reg4)
  228.   (pdl_name echo_req 8 icmp_echo reg4)
  229.   (pdl_name time_exceded 11 icmp_timex reg4)
  230.   (pdl_name bad_param 12 bad_param reg4)
  231.   (pdl_name timestamp_req 13 icmp_time reg4)
  232.   (pdl_name timestamp_rply 14 icmp_time reg4)
  233.   (pdl_name icmp_info_req 15 icmp_info reg4)
  234.   (pdl_name icmp_info_rply 16 icmp_info reg4)
  235.  (funcal reg4)
  236. )
  237.  
  238. (pdl_struct icmp_echo
  239.  (pdl_field code 8 dec)
  240.   (pdl_name som_echo 0 nil nil)
  241.  (funcal 'icmp_cks)
  242. )
  243.  
  244. (pdl_struct icmp_cks
  245.  (pdl_field cks 16 hex)
  246.  (pdl_field unused 32 hex)
  247.  (funcal ???)
  248. )
  249.  
  250.  (funcal 'ip)
  251. )
  252.  
  253. (pdl_struct dst_unreach
  254.  (pdl_field code 8 dec)
  255.   (pdl_name net_unreachable 0 nil nil)
  256.   (pdl_name host_unreachable 1 nil nil)
  257.   (pdl_name protocol_unreach 2 nil nil)
  258.   (pdl_name port_unreachable 3 nil nil)
  259.   (pdl_name need_frag_but_DF 4 nil nil)
  260.   (pdl_name src_route_failed 5 nil nil)
  261.  (funcal 'icmp_cks)
  262. )
  263.  
  264. (pdl_struct src_quench
  265.  (pdl_field code 8 dec)
  266.   (pdl_name src_too_fast 0 nil nil)
  267.  (funcal 'icmp_cks)
  268. )
  269.  
  270. (pdl_struct icmp_redirect
  271.  (pdl_field code 8 dec)
  272.   (pdl_name redirect_net 0 nil nil)
  273.   (pdl_name redirect_host 1 nil nil)
  274.   (pdl_name redirect_srv_net 2 nil nil)
  275.   (pdl_name redirect_srv_host 3 nil nil)
  276.  (pdl_field cks 16 hex)
  277.  (pdl_field err_ptr 16 hex)
  278.  (pdl_field unused 24 hex)
  279.  (funcal ???)
  280. )
  281.  
  282. (pdl_struct icmp_timex
  283.  (pdl_field code 8 dec)
  284.   (pdl_name time_live_exed 0 nil nil)
  285.   (pdl_name frag_reassm_exed 1 nil nil)
  286.  (funcal 'icmp_cks)
  287. )
  288.  
  289. (pdl_struct bad_param
  290.  (pdl_field code 8 dec)
  291.   (pdl_name bad_param_val 0 nil nil)
  292.  (pdl_field cks 16 hex)
  293.  (pdl_field err_ptr 16 hex)
  294.  (pdl_field unused 24 hex)
  295.  (funcal ???)
  296. )
  297.  
  298. (pdl_struct icmp_time
  299.  (pdl_field code 8 dec)
  300.   (pdl_name som_time 0 nil nil)
  301.  (pdl_field cks 16 hex)
  302.  (pdl_field id 8 hex)
  303.  (pdl_field seq 8 hex)
  304.  (pdl_field originate 32 dec)
  305.  (pdl_field receive 32 dec)
  306.  (pdl_field transmit 32 dec)
  307.  (thats_all)
  308. )
  309.  
  310. (pdl_struct icmp_info
  311.  (pdl_field code 8 dec)
  312.   (pdl_name som_type 0 nil nil)
  313.  (pdl_field cks 16 hex)
  314.  (pdl_field id 8 hex)
  315.  (pdl_field seq 8 hex)
  316. )
  317.  
  318. (pdl_struct udp
  319.  (pdl_field src_port 16 dec)
  320.  (pdl_field dst_prot 16 dec)
  321.  (pdl_field len 16 dec)
  322.  (pdl_field cks 16 hex)
  323. )
  324.  
  325. (pdl_struct arp
  326.  (pdl_field ar_hrd 16 dec)
  327.   (pdl_name hrd_ab 3 nil nil)
  328.  (pdl_field ar_pro 16 dec)
  329.   (pdl_name dod_ip 2048 nil nil)
  330.  (pdl_field ar_hln 8 dec)
  331.  (pdl_field ar_pln 8 dec)
  332.  (pdl_field ar_op 16 dec)
  333.   (pdl_name op_req 1 nil nil)
  334.   (pdl_name op_reply 2 nil nil)
  335.  (pdl_field ar_s_anet 16 dec)
  336.  (pdl_field ar_s_node 8 dec)
  337.  (pdl_field ar_s_port 8 dec)
  338.  (pdl_field ar_spa 32 ip_addr)
  339.  (pdl_field ar_t_anet 16 dec)
  340.  (pdl_field ar_t_node 8 dec)
  341.  (pdl_field ar_t_port 8 dec)
  342.  (pdl_field ar_tpa 32 ip_addr)
  343.  (thats_all)
  344. )
  345.  
  346. (pdl_struct lddp
  347.  (pdl_field 0 2 hex)
  348.  (pdl_field hop 4 dec)
  349.  (pdl_field ddplen 10 dec)
  350.  (pdl_field cks 16 hex)
  351.  (pdl_field dnet 16 dec)
  352.  (pdl_field snet 16 dec)
  353.  (pdl_field dnod 8 dec)
  354.  (pdl_field snod 8 dec)
  355.  (pdl_field dsok 8 dec)
  356.  (funcal ???)
  357.  (pdl_field ssok 8 dec)
  358.  (funcal ???)
  359.  (pdl_field ddpty 8 noprint :value_to reg3)
  360.  (funcal ???)
  361. )
  362.  
  363. (pdl_struct mazewp
  364.  (pdl_field 0 6 hex)
  365.  (pdl_field mazlen 10 dec)
  366. )
  367.  
  368. (pdl_struct misc_counts
  369.  (pdl_field misc 8 hex :counter cnt4)
  370.   (pdl_name crc_ok 0x0 nil nil :on_scope)
  371.   (pdl_name crc_bad 0x1 nil nil)
  372.   (pdl_name overrun 0x2 nil nil)
  373.   (pdl_name no_abort 0x3 nil nil)
  374.   (pdl_name tooshort 0x4 nil nil)
  375. )
  376.  
  377.